package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class RegisterActivity extends AppCompatActivity {

    private EditText usnedit, psdedit;
    private Button registerbtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        initView();
        setListener();
        saveUser();


    }
//保存用户
    private void saveUser() {
    }

    //用户登录
    private void setListener() {
        registerbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });

    }

    private void initView() {
//        实例化
        usnedit = findViewById(R.id.usnedit);
        psdedit = findViewById(R.id.psdedit);
        registerbtn = findViewById(R.id.registerbtn);
    }
}